package com.wg.user.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

/**
 * @author zf_serveer
 * @CreateTime 2025/1/11 0011
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Component
public class UserLoginDTO {

    /**
     * 用户名
     */
    @NotBlank(message = "Username cannot be blank")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "password cannot be blank")
    private String password;

}
